package com.bilicraft;
import java.awt.event.MouseEvent;

import res.Resources;


public class MButtonConfig extends MButton{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public Launcher launcher;
	
	public MButtonConfig (String t, Resources rs, int x, int y){
		super(t,rs,x,y);
	}
	
	public MButtonConfig (Launcher lc, String t, Resources rs, int x, int y){
		super(t,rs,x,y);
		launcher = lc;
	}
	
	public void mClicked(MouseEvent e){
		if(launcher != null){
			if(launcher.configFrame != null){
				launcher.configFrame.setVisible(true);
				launcher.configFrame.toFront();
			}else{
				launcher.configFrame = new FrameConfig(launcher);
			}
		}
	}
	
}
